package org.taofuxn.framework;

import android.app.Application;

import org.taofuxn.framework.util.GreenDaoUtil;


/**
 * Created by wanghuafu on 16/9/14.
 */
public class MyApp extends Application {

    private static MyApp instance;
    /**
     * s数据库的持久化对象
     */
    private GreenDaoUtil mDaoUtil;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        mDaoUtil = new GreenDaoUtil(this);
    }

    public GreenDaoUtil getmDaoUtil() {
        return mDaoUtil;
    }

    public static MyApp getInstance(){

        return instance;
    }
}
